package com.taobao.test.client;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.taobao.test.di.Person;

public class SpringDIClient {

	public static void main(String[] args) {
		BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext-di.xml");

		Person person = (Person) factory.getBean("person");

		person.useAxe();
	}
}
